package com.mall.b2c.bean;

import com.mall.b2c.domain.goods.GoodsDomain;
import com.mall.b2c.domain.member.ConsultDomain;
import com.mall.common.util.BeanUtils;

/**
 * 咨询、建议、纠错、投诉
 * 
 * @author lzx
 *
 */
public class ConsultBean {
	private Long id; // id
	private String title;// 消息标题
	private String content;// 消息内容
	private String attachFile; // 上传附件
	private String contact; // 联系方式
	private String returnContent;// 回复内容
	private String type; // 咨询类型 (咨询、建议 、 投诉 、 商品纠错)
	private Boolean deleteStatus;// 删除状态
	private Boolean readStatus;// 阅读状态
	private Boolean returnStatus;// 回复状态

	private String createDate; //提交时间

	private GoodsBean goodsBean; // 纠错商品

	public ConsultBean() {
	}
	
	public ConsultBean(ConsultDomain consult) {
		if(consult != null){
			BeanUtils.copyProperties(consult, this);
			GoodsDomain goods = consult.getGoods();
			if(goods != null){
				setGoodsBean(new GoodsBean(goods, null));
			}
		}
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAttachFile() {
		return attachFile;
	}

	public void setAttachFile(String attachFile) {
		this.attachFile = attachFile;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getReturnContent() {
		return returnContent;
	}

	public void setReturnContent(String returnContent) {
		this.returnContent = returnContent;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Boolean getDeleteStatus() {
		return deleteStatus;
	}

	public void setDeleteStatus(Boolean deleteStatus) {
		this.deleteStatus = deleteStatus;
	}

	public Boolean getReadStatus() {
		return readStatus;
	}

	public void setReadStatus(Boolean readStatus) {
		this.readStatus = readStatus;
	}

	public Boolean getReturnStatus() {
		return returnStatus;
	}

	public void setReturnStatus(Boolean returnStatus) {
		this.returnStatus = returnStatus;
	}

	public GoodsBean getGoodsBean() {
		return goodsBean;
	}

	public void setGoodsBean(GoodsBean goodsBean) {
		this.goodsBean = goodsBean;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
}
